package com.iris.live.services.report.data.baseline;

import com.iris.live.services.report.data.ColumnUnit;

/**
 * @Description:品牌单元定义
 * @author: Tony.Zhang
 * @Date: 2017-08-25 13:41
 *
 * Sample: Y轴按品牌纬度统计
 * 合计 ，MM , MB, AMG, SMART
 *
 **/
public class BaseUnit extends ColumnUnit {
    private BaseType   type;
    private String     key;   //该单元在原始数据中对应的Key名

    public BaseUnit(BaseType type, String text, String key, Integer displayRowOrder) {
        this(type, text, text, key, displayRowOrder);
    }

    public BaseUnit(BaseType type, String text, String value, String key, Integer displayRowOrder) {
        super(value, text, displayRowOrder);

        this.type = type;
        this.key = key;
    }

    public BaseType getType() {
        return type;
    }

    public void setType(BaseType type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public enum BaseType {TOTAL, SINGLE,NORMAL}//totsl 表示属于累计类型 如2017.SINGLE属于 被累计值  如1月  NORMAL 属于不纳入累计值
}
